libxl: add a versioning number to ctx_init that permit to detect
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 30 Dec 2009 12:47:09 +0000 (12:47 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 30 Dec 2009 12:47:09 +0000 (12:47 +0000)
commitd2863c7929162dbc44fb7cc54bf08f68ade57681
tree5b4e3b2db4d696a82f96dd0fb5bfbbd9db9ae084
parent94552247809fafcf8e71a76cb0ec9b864c46836e
libxl: add a versioning number to ctx_init that permit to detect
incompatible client.

at the moment if the versioning of the library is not exactly the same
used in the client then the ctx_init return an ERROR_VERSION. however
the same mechanism can be use in the future to be able to support
older version and offer a compatibility layer.

Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl.h
tools/libxl/xl.c